cmake_minimum_required(VERSION 3.1)
PROJECT(SamplesAndTutos)

OPTION(INSTALL_SAMPLES "Once build, deploy samples into bin" ON)

SET(SAMPLE_LIST "")
add_subdirectory("camera control/cpp")
add_subdirectory("camera streaming/receiver/cpp")
add_subdirectory("camera streaming/sender/cpp")
add_subdirectory("depth sensing/cpp")
add_subdirectory("object detection/image viewer/cpp")
add_subdirectory("object detection/birds eye viewer/cpp")
add_subdirectory("body tracking/cpp")
add_subdirectory("plane detection/cpp")
add_subdirectory("positional tracking/cpp")
add_subdirectory("spatial mapping/advanced point cloud mapping/cpp")
add_subdirectory("spatial mapping/basic/cpp")
add_subdirectory("svo recording/export/cpp")
add_subdirectory("svo recording/playback/cpp")
add_subdirectory("svo recording/recording/cpp")
add_subdirectory("other/cuda refocus")
add_subdirectory("other/opengl gpu interop")
add_subdirectory("other/multi camera/cpp")
add_subdirectory("tutorials")

if(${INSTALL_SAMPLES})
    INSTALL(TARGETS ${SAMPLE_LIST} RUNTIME DESTINATION ${CMAKE_SOURCE_DIR}/bin)
endif()